﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Threading;
using System.Globalization;

public partial class companypart_SendmsgAdmin : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

           // SqlDataSource1.Update();
        }

    }

    protected override void InitializeCulture()
    {
        if (Session["CurrentCulture"] != null)
        {
            string lang = Session["CurrentCulture"].ToString();
            if (lang != null && lang != "")
            {
                Thread.CurrentThread.CurrentUICulture = new CultureInfo(lang);
                Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(lang);
                Thread.CurrentThread.CurrentCulture.DateTimeFormat = new CultureInfo("en-US", false).DateTimeFormat;



            }
        }
    }

    protected void edit_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Sends.aspx");
        //LinkButton lk = (LinkButton)sender;
        //Sendmail1.sets(lk.ToolTip + "," + "reply_id");
      

       // Page.ClientScript.RegisterStartupScript(this.GetType(), "reports", "there();", true);
        //ScriptManager.RegisterStartupScript(this.o, this.GetType(), "hj", "there();", true);

    }
    protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
    {

        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Attributes.Add("onmouseover", "this.style.cursor='pointer'");

            e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='default'");

        }
    }
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            string dd = e.Row.FindControl("msg").ClientID;
            e.Row.Attributes.Add("onclick", "javascript:return quickread('" + HttpUtility.HtmlEncode(Convert.ToString(dd)) + "');");
        }
    }
    
}
